﻿@model shop.Taikhoan
@{
    ViewBag.Title = "login";
}
<style>
    .validation-summary-errors {
        color: rgb(239, 126, 39);
    }
</style>
@using (Html.BeginForm("Login","Account",FormMethod.Post)) {
    <div style="width:250px;margin:10px auto;" id="login">
           @Html.ValidationSummary() 
            <div style="margin-bottom:15px;">
                <div class="editor-label">
                   Tài khoản:
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.tentk)
                    @Html.ValidationMessageFor(m => m.tentk)
                </div>
            </div>
            <div>
                <div style="clear:both"></div>
                <div class="editor-label">
                    Mật Khẩu:
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.matkhau)
                    @Html.ValidationMessageFor(m => m.matkhau)
                </div>
            </div>
            <div style="clear:both"></div>
            <p>
                <input type="hidden" value="@Request.QueryString["returnUrl"]" name="returnUrl" /> @*chuyen link trang truoc do can phan quyen*@
                <input type="submit" value="Đăng nhập" style="margin:10px auto" />@*hien thi cac loi thong bao*/true de khong hien thi nhung loi o ben duoi*@
            </p>
    </div>
}